<?php

/**
 * @apiGroup           User
 * @apiName            changePassword
 *
 * @api                {POST} /v1/email/change Forgot email
 * @apiDescription     Forgot email endpoint.
 *
 * @apiVersion         1.0.0
 * @apiPermission      none
 *
 * @apiParam           {String}  email
 * @apiParam           {String}  reseturl the reset email url
 *
 * @apiSuccessExample  {json}  Success-Response:
 * HTTP/1.1 202 OK
 * {}
 */

use App\Containers\AppSection\User\UI\API\Controllers\Controller;
use Illuminate\Support\Facades\Route;

Route::post('email/change', [Controller::class, 'changeEmail'])
    ->name('api_user_change_email')
    ->middleware(['auth:api']);
